package com.example.everying.service.order.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.everying.mapper.order.BountyOrderMapper;
import com.example.everying.model.entity.order.BountyOrder;
import com.example.everying.service.order.BountyOrderService;
import org.springframework.stereotype.Service;

/**
 * 悬赏订单Service实现类
 */
@Service
public class BountyOrderServiceImpl extends ServiceImpl<BountyOrderMapper, BountyOrder> implements BountyOrderService {

@Override
public BountyOrder getByOrderNo(String orderNo) {
        QueryWrapper<BountyOrder> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("order_no", orderNo);
        return baseMapper.selectOne(queryWrapper);
    }

}